import request from '@/utils/request'

// 查询公寓和安保对应列表
export function listTbapartsecurityref(query) {
  return request({
    url: '/apartment/tbapartsecurityref/list',
    method: 'get',
    params: query
  })
}

// 查询公寓和安保对应详细
export function getTbapartsecurityref(id) {
  return request({
    url: '/apartment/tbapartsecurityref/' + id,
    method: 'get'
  })
}

// 新增公寓和安保对应
export function addTbapartsecurityref(data) {
  return request({
    url: '/apartment/tbapartsecurityref',
    method: 'post',
    data: data
  })
}

// 修改公寓和安保对应
export function updateTbapartsecurityref(data) {
  return request({
    url: '/apartment/tbapartsecurityref',
    method: 'put',
    data: data
  })
}

// 删除公寓和安保对应
export function delTbapartsecurityref(id) {
  return request({
    url: '/apartment/tbapartsecurityref/' + id,
    method: 'delete'
  })
}
